package com.sumainfor.pc.market.service.gmio;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.dao.RdPactMapper;
import com.sumainfor.pc.market.dao.gmio.AssignHousekeeperMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 运营部服务管家调用
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-06-08 15:33
 **/
@Service
public class AssignHousekeeperService implements Serializable {

    @Autowired
    AssignHousekeeperMapper assignHousekeeperMapper;

   /**
   * <p>
   * 待分配管家
   * </p>
   *
   * @author: zhoucong
   * @since:
   */
    public JsonResult getAssignHousekeeperCount(){
        JsonResult result = new JsonResult();
        Map<String,Object> map = new HashMap<>();
      map.put("getAssignHousekeeperCount",assignHousekeeperMapper.getAssignHousekeeperCount());
     return result.put(map);
    }

    /**
    * <p>
    * 服务管家房源配置变化
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    public JsonResult getHouConPactListCount(){
        JsonResult result = new JsonResult();
        Map<String,Object> map = new HashMap<>();
        map.put("getHouConPactListCount",assignHousekeeperMapper.getHouConPactListCount());
        return result.put(map);
    }

    /**
    * <p>
    * 训房异常回访
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    public JsonResult getRoundsAbnormalCount(){
        JsonResult result = new JsonResult();
        Map<String,Object> map = new HashMap<>();
        map.put("getRoundsAbnormalCount",assignHousekeeperMapper.getRoundsAbnormalCount());
        return result.put(map);
    }

    /**
    * <p>
    * 月续租和日续租
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    public JsonResult getForRenewal(){
        JsonResult result = new JsonResult();
        Map<String,Object> getForRenewalMap = assignHousekeeperMapper.getForRenewal();
        return result.put(getForRenewalMap);
    }

}
